package com.etcn.modules.busi.member.service;

import com.etcn.common.service.ICrudService;
import com.etcn.modules.busi.member.dao.IWmMemberAttentionDao;
import com.etcn.modules.busi.member.pojo.WmMemberAttention;

import java.util.Collection;
import java.util.List;
import java.util.Map;



/**
 * 会员关注service
 * @author guozc
 * @date 2018-03-22 09:08:10
 */
public interface IWmMemberAttentionService extends ICrudService<IWmMemberAttentionDao, WmMemberAttention> {

	/**
	 * 添加关注
	 */
	void add(Map<String,Object> param) throws Exception;
	
	/**
	 * 查询会员关注
	 */
	Collection<Map<String,Object>> findByMemberId(WmMemberAttention entity) throws Exception;
	
	/**
	 * 取消关注
	 */
	void cancelAttentions(List<Map<String,String>> attentions) throws Exception;

	/**
	 * 判断是否已关注
	 */
	boolean judgeIfAttention(WmMemberAttention attention) throws Exception;
}